<template>
  <div class="home-container">
    <div>
      <home-header class="main-header"></home-header>
    </div>
    <div class="main-container">
      <div class="aside">
        <home-aside></home-aside>
      </div>
      <div class="main" ref="main">
        <keep-alive>
          <router-view />
        </keep-alive>
      </div>
    </div>
    <div class="footer">
      <home-footer></home-footer>
    </div>
  </div>
</template>

<script>
import homeHeader from "@/views/homeHeader";
import homeAside from "@/views/homeAside";
import homeFooter from "@/views/homeFooter";

export default {
  components: {
    homeHeader,
    homeAside,
    homeFooter
  },
  data() {
    return {};
  }
};
</script>
<style lang="less" scoped>
.home-container {
  position: relative;
  height: 100%;
  .main-header {
    background-color: #d74d45;
    height: 0.366032rem;
  }
  .main-container {
    display: flex;
    justify-content: flex-start;
    height: calc(100% - 0.439239rem) !important;
    height: -webkit-calc(100% - 0.439239rem) !important;
    height: -moz-calc(100% - 0.439239rem) !important;
    .aside {
      width: 1.830161rem;
      margin-bottom: 0.439239rem;
      overflow: hidden;
      overflow-y: auto;
    }

    .main {
      flex: 1;
      overflow-y: auto;
      padding: 0.146413rem;
      margin: 0 auto 0.439239rem;
    }
  }
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.439239rem;
    border-top: 1px solid #dad7d7;
    background-color: #fff;
  }
}
</style>
